# -*- coding: utf-8 -*-
# $Id: firstwindow.py 24 2008-02-13 14:37:34Z gkuznets $

# mpcheckup
# Copyright 2008 Grigoriy Kuznetsov (gkuznets@yandex.ru)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from PyQt4 import QtGui
from PyQt4.QtGui import QDialog

from gui.ui.startup_dialog import Ui_StartupDialog

class FirstWindow(QDialog):
  """Начальное диалоговое окно"""
  
  def __init__(self, parent=None):
    QDialog.__init__(self, parent)
    self.ui = Ui_StartupDialog()
    self.ui.setupUi(self)
    
  def problems_count(self):
    """Количество задач"""
    return self.ui.problems_count_sb.value()
  
  def checkups_count(self):
    """Количество проверок"""
    return 2
  
  def log_file_name(self):
    """Имя файла лога"""
    return str(self.ui.log_file_name_edit.text())
